class Controller():
    def __init__(self):
        self.thread = {}
        self.data = None
        self.device = {}
        self.view = None
        self.process = None
        self.mode = 0

    def add_thread(self, n, t):
        self.thread[n] = t

    def add_data(self, d):
        self.data = d

    def add_device(self, n, d):
        self.device[n] = d

    def add_view(self, v):
        self.view = v

    def add_process(self, p):
        self.process = p
